<li><a href="#" onclick="artlist(this)">政策文章</a> </li>
<script>
      function artlist(obj){
        $(obj).parent("li").addClass("on");


        if(loginuser.type == 6){
            $("#mainbox").load("publish.html");

        }else{
            $("#mainbox").load("artlist.html");
        }

    }
</script>